package com.bus.core.entity;

import com.bus.core.common.Comment;
import com.bus.core.common.CommonSuper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

@Entity
@Table(name = "c_article", uniqueConstraints = {
        @UniqueConstraint(columnNames = {"type", "value"})
})
@EqualsAndHashCode(callSuper = false)
@Data
@Comment("字典表")
public class ArticleEntity extends CommonSuper {
    @Id
    @Comment("id")
    private String id;
    @Comment("标题")
    private String title;
    @Comment("文章类型 local link")
    private String orgType;
    @Comment("链接")
    private String link;
    @Lob
    @Comment("内容")
    private String content;
}
